import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { AdminLayout } from "@/components/layout/admin-layout";
import { ThemeProvider } from "@/components/theme-provider";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
  title: "后台管理系统",
  description: "基于 Next.js 和 Shadcn/UI 的现代化后台管理系统",
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="zh-CN">
      <body className={inter.className}>
        <ThemeProvider>
          <AdminLayout>
            {children}
          </AdminLayout>
        </ThemeProvider>
      </body>
    </html>
  );
}
